package com.hospital.doctor.service;

import com.hospital.doctor.mapper.DoctorMapper;
import com.hospital.doctor.pojo.Doctor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl implements DoctorService {

    @Autowired
    private DoctorMapper doctorMapper;


    @Override
    public List<Doctor> selectAll() {
        return doctorMapper.selectAll();
    }

    @Override
    public Doctor LoginDoctor(Doctor doctor) {
        return doctorMapper.LoginDoctor(doctor);
    }
}
